# Uncomment the next line to define a global platform for your project
platform :ios, '12.0'
use_frameworks!
inhibit_all_warnings!

source 'https://github.com/CocoaPods/Specs.git'

## 解决警告问题 : The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0 to 10.0
## 统一修改第三方库统一支持的系统最低版本号
post_install do |installer|
    installer.pods_project.targets.each do |target|
        target.build_configurations.each do |config|
            config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.0'
            config.build_settings['SWIFT_OPTIMIZATION_LEVEL'] = '-Onone'
            config.build_settings['CODE_SIGN_IDENTITY'] = ''
        end
    end
end

# 弹窗pods
def pop_up_pods
  pod 'Presentr'
  pod 'PanModal'
  pod 'PopupDialog'
  pod 'BottomPopup'
end

# UICollectionViewLayout
def collectionViewLayout_pods
  pod 'CollectionViewPagingLayout'
end

# 字符串操作pods
def string_operation_pods
  pod 'SwiftValidators'
  pod 'SwifterSwift'
  pod 'BFKit-Swift'
end

target 'APSwift' do
  # Pods for APSwift
  pod 'JKPacket' #海龙
  pod 'SnapKit'
  pod 'Then'
  pod 'Moya'
  
  pod 'Kingfisher', '~> 7.6.2'
  pod 'Socket.IO-Client-Swift'
  pod 'HandyJSON'
  pod 'SwiftyTimer'
  
  pod 'APExtensions', :path => 'APExtensions'
#  pod 'GodEye', '~> 1.0.0', :configurations => ['Debug']

  pod 'SDWebImage', '5.18.8' #2024.01.07
  pod 'YYText'
  pod 'YYImage'
  pod 'SVGAPlayer', '2.5.7'
  pod 'FDFullscreenPopGesture'
  pod 'MJExtension'
  pod 'DGCharts'
  
  # 弹窗
  pop_up_pods
  
  # 字符串操作
  string_operation_pods
  
  # UICollectionViewLayout
  collectionViewLayout_pods
  
  pod 'SwiftCharts'
  
end

def testing_pods
    pod 'Quick'
    pod 'Nimble'
end

target 'APSwiftTests' do
    testing_pods
end
